package ma.ac.onousc.gestionfi.EngagementPaiement.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class OrdreVirement implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int idOV;
	private String numOV;
	@Temporal(TemporalType.TIMESTAMP)
	private Date dateOV;

	// bi-directional many-to-one association to Engagement
	@ManyToOne(fetch = FetchType.EAGER)
	private OrdrePaiement ordrePaiement;

	
	
	public OrdreVirement(String numOV, Date dateOV) {
		super();
		this.numOV = numOV;
		this.dateOV = dateOV;
	}



	public OrdreVirement() {
		super();
		// TODO Auto-generated constructor stub
	}



	public int getIdOV() {
		return idOV;
	}

	public void setIdOV(int idOV) {
		this.idOV = idOV;
	}

	public String getNumOV() {
		return numOV;
	}

	public void setNumOV(String numOV) {
		this.numOV = numOV;
	}

	public Date getDateOV() {
		return dateOV;
	}

	public void setDateOV(Date dateOV) {
		this.dateOV = dateOV;
	}

	public OrdrePaiement getOrdrePaiement() {
		return ordrePaiement;
	}

	public void setOrdrePaiement(OrdrePaiement ordrePaiement) {
		this.ordrePaiement = ordrePaiement;
	}

}